﻿using System;
using System.Collections.Generic;

namespace DataBase.DBmodels;

/// <summary>
/// 用户表
/// </summary>
public partial class User
{
    /// <summary>
    /// 主键，自动递增
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public string UserName { get; set; } = null!;

    /// <summary>
    /// 密码
    /// </summary>
    public string Password { get; set; } = null!;

    /// <summary>
    /// 用户姓名
    /// </summary>
    public string? FullName { get; set; }

    /// <summary>
    /// 用户邮箱
    /// </summary>
    public string? Email { get; set; }

    /// <summary>
    /// 手机号码
    /// </summary>
    public string? PhoneNumber { get; set; }

    /// <summary>
    /// 是否启用，1表示启用，0表示禁用
    /// </summary>
    public bool? IsEnabled { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 创建时间，系统自动填充
    /// </summary>
    public DateTime CreatedTime { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? ModifiedTime { get; set; }

    public virtual ICollection<UserRoleRelation> UserRoleRelations { get; set; } = new List<UserRoleRelation>();
}
